
public class Rail extends Block {
	private Player owner;// the type of owner
	private int Price;
	private int Mortgage, rent0, rent1, rent2, rent3;
	private String called; //Its name like MRT3
	private String railDeed;
	private int RailGroup;
	private int numberOfRailsInGroup;
	private boolean IsMortgaged;
	
	public Rail(int blocknumber,int price_, int mort, int rent0_, int rent1_, int rent2_, int rent3_, String called_, String rDeed,int railGrp, int numGrp){
		super(blocknumber);
		this.setOwner(null);
		this.Price = price_;
		this.Mortgage = mort;
		this.rent0 = rent0_;
		this.rent1 = rent1_;
		this.rent2 = rent2_;
		this.rent3 = rent3_;
		this.called =called_;  
		this.setRailDeed(rDeed);
		this.RailGroup=railGrp;
		this.numberOfRailsInGroup=numGrp;
		this.IsMortgaged=false;
	}
	public void setMortgage(int mortgage) {
		Mortgage = mortgage;
	}
	public int getMortgage() {
		return Mortgage;
	}
	public void setRent0(int rent0) {
		this.rent0 = rent0;
	}
	public int getRent0() {
		return rent0;
	}
	public void setRent2(int rent2) {
		this.rent2 = rent2;
	}
	public int getRent2() {
		return rent2;
	}
	public void setRent3(int rent3) {
		this.rent3 = rent3;
	}
	public int getRent3() {
		return rent3;
	}
	public void setRent1(int rent1) {
		this.rent1 = rent1;
	}
	public int getRent1() {
		return rent1;
	}
	public void setCalled(String called) {
		this.called = called;
	}
	public String getCalled() {
		return called;
	}

	public void setRailDeed(String railDeed) {
		this.railDeed = railDeed;
	}
	public String getRailDeed() {
		return railDeed;
	}
	
	public void setOwner(Player owner) {
		this.owner = owner;
	}
	public Player getOwner() {
		return owner;
	}
	public void setPrice(int price) {
		Price = price;
	}
	public int getPrice() {
		return Price;
	}
	public void setRailGroup(int railGroup) {
		this.RailGroup = railGroup;
	}
	public int getRailGroup() {
		return RailGroup;
	}
	public void setNumberOfRailsInGroup(int numberOfRailsInGroup) {
		this.numberOfRailsInGroup = numberOfRailsInGroup;
	}
	public int getNumberOfRailsInGroup() {
		return numberOfRailsInGroup;
	}
	public void setIsMortgaged(boolean isMortgaged) {
		IsMortgaged = isMortgaged;
	}
	public boolean isIsMortgaged() {
		return IsMortgaged;
	}
}
